package cn.com.frame.commom.web;


public class BaseController {

    /**
     * 返回成功调用
     * @param object
     * @return
     */
    protected RespData reSuccess(Object object){
        return  new RespData(object);
    }

    /**
     * 返回失败调用
     * @param failMsg
     * @return
     */
    protected RespData reFail(String failMsg){
        return  new RespData(EmRespCode.FAIL,failMsg);
    }

}
